function out = binary_reverse(image)
    [height, width] = size(image);
    for i = 1 : height
       for j = 1 : width
          out(i, j) = 1 -  image(i, j);
       end
    end